oxenstored: fix systemd socket activation
authorWei Liu <wei.liu2@citrix.com>
Mon, 10 Aug 2015 08:00:18 +0000 (09:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 13 Aug 2015 09:24:02 +0000 (10:24 +0100)
commitda743d1c9091e3f2046dee35bae9ae23e73b84f0
tree0adec6a752df3947c2018a8ad5ae6a69167ce237
parent72ade132335b412edc7253f8099c63abdb13249c
oxenstored: fix systemd socket activation

Use the correct API sd_listen_fds to determine whether the process is
started by systemd.

Change sd_booted to launched_by_systemd to avoid confusion with
systemd's API.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Dave Scott <dave.scott@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/ocaml/xenstored/systemd.ml
tools/ocaml/xenstored/systemd.mli
tools/ocaml/xenstored/systemd_stubs.c
tools/ocaml/xenstored/utils.ml
tools/ocaml/xenstored/xenstored.ml